home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / toolboxsas.lha / Toolbox / lib / include / Memory.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-15  |  1.2 KB  |  47 lines

  1. #ifndef yyMemory
  2. #define yyMemory
  3.  
  4. /* $Id: Memory.h,v 1.5 1992/08/07 14:36:51 grosch rel $ */
  5.  
  6. /* $Log: Memory.h,v $
  7.  * Revision 1.5  1992/08/07  14:36:51  grosch
  8.  * added comments
  9.  *
  10.  * Revision 1.4  1991/11/21  14:28:16  grosch
  11.  * new version of RCS on SPARC
  12.  *
  13.  * Revision 1.3  91/07/17  17:23:14  grosch
  14.  * introduced ARGS trick for ANSI compatibility
  15.  *
  16.  * Revision 1.2  90/12/14  15:55:53  grosch
  17.  * introduced variable MemoryUsed
  18.  *
  19.  * Revision 1.1  90/07/04  14:34:00  grosch
  20.  * introduced conditional include
  21.  *
  22.  * Revision 1.0  88/10/04  11:44:42  grosch
  23.  * Initial revision
  24.  *
  25.  */
  26.  
  27. /* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
  28.  
  29.  
  30. extern unsigned long MemoryUsed;
  31. /* Holds the total amount of memory managed by */
  32. /* this module.                                */
  33.  
  34. void InitMemory(void);
  35. /* The memory module is initialized. */
  36.  
  37. char *Alloc(register unsigned long ByteCount);
  38. /* Returns a pointer to dynamically allocated */
  39. /* space of size 'ByteCount' bytes.           */
  40.  
  41. void Free(unsigned long ByteCount, char *a);
  42. /* The dynamically allocated space starting at */
  43. /* address 'a' of size 'ByteCount' bytes is    */
  44. /* released.                                   */
  45.  
  46. #endif
  47.